package com.ordertracker.protocol;

import java.io.Serializable;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement
public class RequestAuthorization implements Serializable {
    private static final long serialVersionUID = 2575182115498290804L;

    private String login;
    private String password;
    private String timezone;
    private String locale;

    public RequestAuthorization() {
    }

    public RequestAuthorization(String login, String password, String timezone, String locale) {

        this.login = login;
        this.password = password;
        this.timezone = timezone;
        this.locale = locale;
    }

    @XmlElement(nillable = false)
    public String getLogin() {
        return login;
    }

    public void setLogin(String login) {
        this.login = login;
    }

    @XmlElement(nillable = false)
    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    @XmlElement(nillable = false)
    public String getTimezone() {
        return timezone;
    }

    public void setTimezone(String timezone) {
        this.timezone = timezone;
    }

    @XmlElement(nillable = false)
    public String getLocale() {
        return locale;
    }

    public void setLocale(String locale) {
        this.locale = locale;
    }
}
